package com.anlu.base.database;

public class DbManagerFactory {
    private DbManagerFactory() {
    }

    /**
     * Init database.
     *
     * @param isMongo boolean
     * @return {@link DbManager}
     */
    public static DbManager initDb(final boolean isMongo) {
        if (isMongo) {
            return new MongoDb();
        }
        return new VirtualDb();
    }
}
